/**
 * 
 */
package com.ms.service.module.zone.command;

/**
 * 空殼指令
 * <p>
 * 開發過程中臨時需要測試什麼可以寫在這邊，測試完畢後請不要將測試的 code 上傳到 svn，直接 revert 回去就好。
 * 
 * @author TW15010
 */
public class TestCommand extends BasicDebugCommand {
	public static final int CMD_1 = 1;
	public static final int CMD_2 = 2;
	public static final int CMD_3 = 3;
	public static final int CMD_4 = 4;
	public static final int CMD_5 = 5;
	public static final int CMD_6 = 6;
	public static final int CMD_7 = 7;
	public static final int CMD_8 = 8;
	public static final int CMD_9 = 9;
	public static final int CMD_10 = 10;

	private CommandHelper helper = new CommandHelper(getName());

	public TestCommand() {
		helper.addParam(CMD_1, "1", "action 1");
		helper.addParam(CMD_2, "2", "action 2");
		helper.addParam(CMD_3, "3", "action 3");
		helper.addParam(CMD_4, "4", "action 4");
		helper.addParam(CMD_5, "5", "action 5");
		helper.addParam(CMD_6, "6", "action 6");
		helper.addParam(CMD_7, "7", "action 7");
		helper.addParam(CMD_8, "8", "action 8");
		helper.addParam(CMD_9, "9", "action 9");
		helper.addParam(CMD_10, "10", "action 10");
	}

	/**
	 * 測試的 code 可以寫在這裡
	 */
	@Override
	public String execute() {
		int cmdIndex = helper.getCommandIndex(commandValue);
		switch (cmdIndex) {
		case CMD_1: {
			// do something here with param 1 ........
			break;
		}
			
		default:
			// or do something here without param ....
			break;
		} // switch (cmdIndex) {

		return "ok";
	}

	@Override
	public String getName() {
		return "tt";
	}

	@Override
	public String getDescription() {
		return "";
	}

	@Override
	public String getShortDescription() {
		return "nothing ....";
	}
}
